// http://www.raywit.com/tag/yishang.html

a = [];
$('.mainlist .chap li').each((_, v) => {
    console.log($(v).find('i').text(), '-->', $(v).find('b').text());
    a.push({yin: $(v).find('i').text(), xing: $(v).find('b').text()});
});
copy(a);

//=========================

items = [];
$('.mainlist').each((_, v) => {
    title =  $(v).find('.title').text();
    lines = [];
    $(v).find('.chap').each((_, c) => {
        words = [];
        $(c).find('li').each((_, v) => {
            words.push({yin: $(v).find('i').text().trim(), xing: $(v).find('b').text().trim()});
        });

        lines.push(words);
    });

    tmp = {
        title,
        lines,
    };

    items.push(tmp);
});
items
copy(items)
